Model run by trashe using Apollo 0.4.0 on R 4.5.3 for Linux. Please acknowledge the use of Apollo by citing Hess & Palma (2019) DOI 10.1016/j.jocm.2019.100170 www.ApolloChoiceModelling.com Model name : Hybrid_with_OL_and_MMNL_bayesian Model description : Hybrid choice model on drug choice data, bayesian estimation Model run at : 2026-11-03 16:23:21 Estimation method : Hierarchical Bayes Number of individuals : 1000 Number of rows in database : 10000 Number of modelled outcomes : 14000 choice : 10000 indic_quality : 1000 indic_ingredients : 1000 indic_patent : 1000 indic_dominance : 1000 Number of cores used : 1 Estimation carried out using RSGHB Burn-in iterations : 50000 Post burn-in iterations : 10000 Classical model fit statistics were calculated at parameter values obtained using averaging across the post burn-in iterations. LL(start) : -19973.99 LL (whole model) at equal shares, LL(0) : -20300.7 LL (whole model) at observed shares, LL(C) : -19050.2 LL(final, whole model) : -16548.54 Rho-squared vs equal shares : 0.1848 Adj.Rho-squared vs equal shares : 0.1826 Rho-squared vs observed shares : 0.1313 Adj.Rho-squared vs observed shares : 0.13 AIC : 33187.08 BIC : 33526.69 Equiv. estimated parameters : 45 (non-random parameters : 41) (means of random parameters : 2) (covariance matrix terms : 2) LL(0,choice) : -13862.94 LL(final,choice) : -10887.97 LL(0,indic_quality) : -1609.44 LL(final,indic_quality) : -1454.08 LL(0,indic_ingredients) : -1609.44 LL(final,indic_ingredients) : -1486.5 LL(0,indic_patent) : -1609.44 LL(final,indic_patent) : -1485.32 LL(0,indic_dominance) : -1609.44 LL(final,indic_dominance) : -1425.9 Time taken (hh:mm:ss) : 00:10:5.24 pre-estimation : 00:00:2.27 estimation : 00:10:0.25 post-estimation : 00:00:2.72 Summary of parameter chains Non-random coefficients These outputs have had the scaling used in estimation applied to them Mean SD gamma_Artemis_reg_user -0.0001 0.0145 gamma_Artemis_university -0.0311 0.0200 gamma_Artemis_age_50 0.0384 0.0137 gamma_Novum_reg_user -0.0204 0.0208 gamma_Novum_university 0.0183 0.0221 gamma_Novum_age_50 -0.0388 0.0144 b_brand_BestValue 0.6867 0.0516 b_brand_Supermarket 0.9949 0.0574 b_brand_PainAway 0.0000 NA b_country_CH 0.6755 0.0364 b_country_DK 0.3388 0.0382 b_country_USA 0.0000 NA b_country_IND -0.2923 0.0541 b_country_RUS -0.8936 0.0608 b_country_BRA -0.6629 0.0564 b_char_standard 0.0000 NA b_char_fast 0.7737 0.0261 b_char_double 1.2364 0.0388 b_risk -0.0016 0.0001 b_price -0.7302 0.0176 gamma_LV_reg_user -0.9528 0.0574 gamma_LV_university -0.5794 0.0845 gamma_LV_age_50 0.4753 0.0837 lambda 0.6313 0.0324 zeta_quality 0.9462 0.0669 zeta_ingredient -0.8418 0.0685 zeta_patent 1.0746 0.0729 zeta_dominance -0.6556 0.0875 tau_quality_1 -1.9037 0.1049 tau_quality_2 -1.0028 0.0860 tau_quality_3 1.1183 0.0864 tau_quality_4 2.2205 0.1005 tau_ingredients_1 -2.1345 0.0943 tau_ingredients_2 -1.0419 0.0943 tau_ingredients_3 0.8909 0.0847 tau_ingredients_4 1.8547 0.1051 tau_patent_1 -2.0844 0.1055 tau_patent_2 -1.0078 0.0795 tau_patent_3 1.0022 0.0905 tau_patent_4 1.9262 0.0940 tau_dominance_1 -2.1831 0.1116 tau_dominance_2 -1.0936 0.0732 tau_dominance_3 1.0459 0.1057 tau_dominance_4 2.0981 0.1383 Results for posterior means for random coefficients These outputs have had the scaling used in estimation applied to them Mean SD b_brand_Artemis_base 1.4289 0.0919 b_brand_Novum_base 1.1650 0.1217 eta 0.0103 0.7759 Summary of distributions of random coefficients (after distributional transforms) These outputs have had the scaling used in estimation applied to them Mean SD b_brand_Artemis_base 1.4274 0.3031 b_brand_Novum_base 1.1607 0.3456 eta -0.0103 1.0115 Covariance matrix of random coefficients (after distributional transforms) These outputs have had the scaling used in estimation applied to them b_brand_Artemis_base b_brand_Novum_base eta b_brand_Artemis_base 0.0919 0.0010 0.0033 b_brand_Novum_base 0.0010 0.1194 0.0041 eta 0.0033 0.0041 1.0231 Correlation matrix of random coefficients (after distributional transforms) These outputs have had the scaling used in estimation applied to them b_brand_Artemis_base b_brand_Novum_base eta b_brand_Artemis_base 1.0000 0.0099 0.0109 b_brand_Novum_base 0.0099 1.0000 0.0116 eta 0.0109 0.0116 1.0000 Upper level model results for mean parameters for underlying Normals These outputs have NOT had the scaling used in estimation applied to them Mean SD b_brand_Artemis_base 1.4290 0.0560 b_brand_Novum_base 1.1652 0.0544 eta 0.0000 0.0000 Upper level model results for covariance matrix for underlying Normals (means across iterations) These outputs have NOT had the scaling used in estimation applied to them b_brand_Artemis_base b_brand_Novum_base eta b_brand_Artemis_base 0.0896 0.0000 0 b_brand_Novum_base 0.0000 0.1184 0 eta 0.0000 0.0000 1 Upper level model results for covariance matrix for underlying Normals (SD across iterations) These outputs have NOT had the scaling used in estimation applied to them b_brand_Artemis_base b_brand_Novum_base eta b_brand_Artemis_base 0.0237 0.0000 0 b_brand_Novum_base 0.0000 0.0282 0 eta 0.0000 0.0000 0 Chain convergence report (Geweke test) Fixed (non random) parameters (t-test value for Geweke test) gamma_Artemis_reg_user gamma_Artemis_university gamma_Artemis_age_50 -11.6303 14.5903 -6.3424 gamma_Novum_reg_user gamma_Novum_university gamma_Novum_age_50 -5.6772 -0.4635 -1.8139 b_brand_BestValue b_brand_Supermarket b_country_CH -2.0658 -2.7734 1.7529 b_country_DK b_country_IND b_country_RUS 0.3718 -0.1750 -1.8968 b_country_BRA b_char_fast b_char_double -0.1865 -0.9777 -0.1955 b_risk b_price gamma_LV_reg_user 1.0186 1.0893 -4.4038 gamma_LV_university gamma_LV_age_50 lambda -5.9597 1.5261 -2.1379 zeta_quality zeta_ingredient zeta_patent 2.1689 -1.8650 -2.7408 zeta_dominance tau_quality_1 tau_quality_2 -1.2499 -3.5060 -1.2470 tau_quality_3 tau_quality_4 tau_ingredients_1 -0.3337 0.5086 1.7376 tau_ingredients_2 tau_ingredients_3 tau_ingredients_4 1.4140 2.1940 0.1299 tau_patent_1 tau_patent_2 tau_patent_3 -13.0924 -8.2629 -10.8855 tau_patent_4 tau_dominance_1 tau_dominance_2 -6.4151 -0.2685 -2.1060 tau_dominance_3 tau_dominance_4 8.1574 10.0367 Random parameters (t-test value for Geweke test) b_brand_Artemis_base b_brand_Novum_base eta -1.7513 -1.0183 NaN Covariances of random parameters (t-test value for Geweke test) b_brand_Artemis_base_b_brand_Artemis_base 2.3180 b_brand_Novum_base_b_brand_Artemis_base NaN b_brand_Novum_base_b_brand_Novum_base -2.3256 eta_b_brand_Artemis_base NaN eta_b_brand_Novum_base NaN eta_eta NaN Iteration details (overview) ---------------------------- Iteration Log-Likelihood RLH Parameter RMS Avg. Variance 1 -19720.84 0.1408455 0.3128985 0.0987185 500 -17581.72 0.1773490 0.8556554 0.5228566 1000 -17449.65 0.1798651 0.9641371 0.5637477 1500 -17254.04 0.1832688 1.0670970 0.7104496 2000 -17239.50 0.1836127 1.0931405 0.7457638 2500 -17075.37 0.1871862 1.1367242 0.7742674 3000 -17015.07 0.1881220 1.1777236 0.9055637 3500 -16903.36 0.1903623 1.2034964 0.8968962 4000 -16883.56 0.1907468 1.1982760 0.8775281 4500 -16776.23 0.1925683 1.2215051 0.9575163 5000 -16736.24 0.1936898 1.2168036 0.9448209 5500 -16701.19 0.1944458 1.2513607 1.0271812 6000 -16672.79 0.1946296 1.1766729 0.9286232 6500 -16617.48 0.1960616 1.2284301 1.0223401 7000 -16547.66 0.1971081 1.1692637 0.8959932 7500 -16487.02 0.1985517 1.2464588 1.0246591 8000 -16529.72 0.1975349 1.1738297 0.9108952 8500 -16471.30 0.1987407 1.1805914 0.9233978 9000 -16458.42 0.1989773 1.1553972 0.9096518 9500 -16394.47 0.2001170 1.1597752 0.8898923 10000 -16396.20 0.2000496 1.1184168 0.8257706 10500 -16335.84 0.2014370 1.1971585 0.9500816 11000 -16314.92 0.2020152 1.1532449 0.8933019 11500 -16288.83 0.2023546 1.1648317 0.9261855 12000 -16254.89 0.2031857 1.2061635 1.0033810 12500 -16239.48 0.2036232 1.2065882 0.9735919 13000 -16183.47 0.2045690 1.1698231 0.9013000 13500 -16190.53 0.2045420 1.1915143 0.9714047 14000 -16185.35 0.2047858 1.1774402 0.9406284 14500 -16163.20 0.2049594 1.1639332 0.9028177 15000 -16173.12 0.2048547 1.1769371 0.9508480 15500 -16113.25 0.2062536 1.2059970 0.9808584 16000 -16148.32 0.2053382 1.2269869 0.9710579 16500 -16075.16 0.2067921 1.1866796 0.9742474 17000 -16100.70 0.2065759 1.2236680 1.0226974 17500 -16130.86 0.2059403 1.2074306 0.9735531 18000 -16096.20 0.2066149 1.1803236 0.9307889 18500 -16097.65 0.2062865 1.1261600 0.8420149 19000 -16072.80 0.2070323 1.1387262 0.8821418 19500 -16055.64 0.2075282 1.1406593 0.8758777 20000 -16075.33 0.2071742 1.1643976 0.9340992 20500 -16027.48 0.2079956 1.1544844 0.9152879 21000 -16012.18 0.2084114 1.1760642 0.9331355 21500 -16038.65 0.2078375 1.1374023 0.8217611 22000 -16011.33 0.2085890 1.1979085 0.8936679 22500 -16029.43 0.2082432 1.1913153 0.9405459 23000 -16050.05 0.2078552 1.1884367 0.8800612 23500 -16037.61 0.2082229 1.1776275 0.8975820 24000 -16052.28 0.2076587 1.1709323 0.8762496 24500 -16005.88 0.2088067 1.1560488 0.8692608 25000 -15970.05 0.2094349 1.1861030 0.9291536 25500 -15939.03 0.2103002 1.1623695 0.8812370 26000 -16050.29 0.2079300 1.0660654 0.7123841 26500 -15961.97 0.2100422 1.1340925 0.8042027 27000 -15983.01 0.2094043 1.1199917 0.7751048 27500 -16011.14 0.2090442 1.1222102 0.7427102 28000 -15988.21 0.2092504 1.1350021 0.8262969 28500 -15981.76 0.2094970 1.1562588 0.8794245 29000 -15937.15 0.2107377 1.1387070 0.8024523 29500 -15993.39 0.2090840 1.0993430 0.7544400 30000 -16004.94 0.2092323 1.1589324 0.8179749 30500 -15950.89 0.2101608 1.1259035 0.7826347 31000 -15965.11 0.2095037 1.1441915 0.8220535 31500 -16038.09 0.2084564 1.1141703 0.8043224 32000 -16010.20 0.2090918 1.1052872 0.8010575 32500 -15940.24 0.2104805 1.1796613 0.8966228 33000 -15991.70 0.2088456 1.1376490 0.8230991 33500 -15954.18 0.2101491 1.1538871 0.8392012 34000 -15971.04 0.2099068 1.2626468 0.9870460 34500 -15979.52 0.2094632 1.2808921 0.9693258 35000 -15957.06 0.2101365 1.2348694 0.9860289 35500 -15972.41 0.2097503 1.1852063 0.8682356 36000 -15989.03 0.2093324 1.1965889 0.8502708 36500 -15976.77 0.2098353 1.2041667 0.9066789 37000 -15978.68 0.2096525 1.1962095 0.9174225 37500 -16033.70 0.2083254 1.1634050 0.8056443 38000 -15977.49 0.2095498 1.2702053 1.0100144 38500 -15907.76 0.2110551 1.2767202 0.9641507 39000 -15970.79 0.2098744 1.2536338 0.9592195 39500 -15922.84 0.2105322 1.2240395 0.9139129 40000 -16004.31 0.2091104 1.1652631 0.8792577 40500 -15967.60 0.2102701 1.2228984 0.9436739 41000 -16000.52 0.2094519 1.2272999 0.9752987 41500 -15943.76 0.2104526 1.2065285 0.8622980 42000 -15964.10 0.2101041 1.2750577 1.0004161 42500 -15988.88 0.2095762 1.2781803 1.0097335 43000 -15943.50 0.2105844 1.3305081 1.0851944 43500 -15948.09 0.2104176 1.2595751 0.9504713 44000 -16046.15 0.2079031 1.2597991 0.9465176 44500 -16013.05 0.2089740 1.2830715 1.0502859 45000 -15959.01 0.2104906 1.3303463 1.1396464 45500 -16001.05 0.2091824 1.2558746 0.9785588 46000 -15964.85 0.2099754 1.2265451 0.9613130 46500 -15923.92 0.2107319 1.2754295 1.0283282 47000 -15955.77 0.2100426 1.2750512 1.0037991 47500 -15993.26 0.2096323 1.3080253 1.0924545 48000 -15952.31 0.2100706 1.2926497 1.0432093 48500 -15984.99 0.2096874 1.2527385 1.0484099 49000 -15963.14 0.2101489 1.2578459 0.9665124 49500 -15998.96 0.2089341 1.2492394 0.9805637 50000 -15999.45 0.2092231 1.2364867 1.0214763 50500 -15910.89 0.2114127 1.2433948 1.0265016 51000 -16015.63 0.2088048 1.1373825 0.8131669 51500 -15958.24 0.2100757 1.2322728 0.9643448 52000 -15976.27 0.2098734 1.2129856 0.9499700 52500 -16009.25 0.2089802 1.1986064 0.8904412 53000 -15987.37 0.2093133 1.2136925 0.9528310 53500 -15985.16 0.2101758 1.2621083 0.9955445 54000 -15963.04 0.2098216 1.2136797 0.9474996 54500 -15953.50 0.2107449 1.2115931 0.9610720 55000 -15885.90 0.2115641 1.2120524 0.9111603 55500 -15966.59 0.2100735 1.2296886 0.9565750 56000 -15974.39 0.2102843 1.2071523 0.8982077 56500 -15986.66 0.2096271 1.2555064 1.0027422 57000 -15957.64 0.2104524 1.3439625 1.1044316 57500 -15965.52 0.2098934 1.3112200 1.0523422 58000 -15993.12 0.2094944 1.2388820 0.9098025 58500 -15923.93 0.2112680 1.2489604 0.9525130 59000 -15971.17 0.2100754 1.3017292 1.0561150 59500 -15990.51 0.2093704 1.2065795 0.9627638 60000 -15906.03 0.2112133 1.2367680 0.9738839 Acceptance Rate (Fixed) Acceptance Rate (Normal) 0.00 0.590 0.25 0.291 0.21 0.324 0.27 0.296 0.32 0.288 0.28 0.309 0.28 0.326 0.26 0.281 0.29 0.303 0.20 0.305 0.34 0.324 0.34 0.298 0.26 0.313 0.16 0.311 0.31 0.293 0.22 0.304 0.29 0.303 0.34 0.327 0.30 0.283 0.32 0.309 0.24 0.311 0.33 0.295 0.26 0.302 0.25 0.323 0.32 0.291 0.25 0.328 0.38 0.314 0.33 0.302 0.30 0.295 0.38 0.285 0.28 0.303 0.34 0.291 0.28 0.317 0.25 0.297 0.37 0.273 0.24 0.285 0.29 0.325 0.23 0.275 0.25 0.275 0.25 0.274 0.23 0.294 0.32 0.283 0.26 0.334 0.34 0.257 0.41 0.290 0.29 0.283 0.36 0.299 0.40 0.316 0.34 0.283 0.38 0.292 0.26 0.277 0.32 0.309 0.34 0.289 0.38 0.304 0.35 0.302 0.38 0.310 0.32 0.298 0.28 0.259 0.32 0.270 0.29 0.269 0.33 0.287 0.28 0.318 0.27 0.311 0.32 0.299 0.31 0.324 0.27 0.333 0.28 0.316 0.33 0.276 0.33 0.308 0.38 0.331 0.33 0.285 0.32 0.264 0.33 0.315 0.34 0.317 0.35 0.305 0.34 0.317 0.42 0.327 0.24 0.301 0.39 0.261 0.28 0.280 0.32 0.313 0.23 0.286 0.36 0.311 0.25 0.320 0.22 0.348 0.30 0.287 0.23 0.291 0.34 0.261 0.33 0.320 0.29 0.301 0.32 0.321 0.29 0.312 0.35 0.285 0.35 0.315 0.23 0.323 0.34 0.324 0.26 0.313 0.33 0.336 0.37 0.327 0.31 0.322 0.33 0.302 0.39 0.272 0.29 0.290 0.36 0.277 0.30 0.292 0.24 0.241 0.31 0.286 0.37 0.269 0.22 0.267 0.20 0.278 0.30 0.257 0.26 0.260 0.39 0.263 0.30 0.255 0.30 0.247 0.27 0.279 0.30 0.259 0.39 0.259 0.26 0.250 0.30 0.290 0.31 0.230 Settings and functions used in model definition: apollo_control -------------- Value modelName "Hybrid_with_OL_and_MMNL_bayesian" modelDescr "Hybrid choice model on drug choice data, bayesian estimation" indivID "ID" HB "TRUE" outputDirectory "output/" debug "FALSE" nCores "1" workInLogs "FALSE" seed "13" mixing "FALSE" noValidation "FALSE" noDiagnostics "FALSE" calculateLLC "TRUE" analyticHessian "FALSE" dropLoopExpansion "FALSE" dropRedefCheck "FALSE" panelData "TRUE" analyticGrad "TRUE" analyticGrad_manualSet "FALSE" overridePanel "FALSE" preventOverridePanel "FALSE" noModification "FALSE" apollo_HB --------- $hbDist b_brand_Artemis_base gamma_Artemis_reg_user gamma_Artemis_university "N" "NR" "NR" gamma_Artemis_age_50 b_brand_Novum_base gamma_Novum_reg_user "NR" "N" "NR" gamma_Novum_university gamma_Novum_age_50 b_brand_BestValue "NR" "NR" "NR" b_brand_Supermarket b_brand_PainAway b_country_CH "NR" "NR" "NR" b_country_DK b_country_USA b_country_IND "NR" "NR" "NR" b_country_RUS b_country_BRA b_char_standard "NR" "NR" "NR" b_char_fast b_char_double b_risk "NR" "NR" "NR" b_price gamma_LV_reg_user gamma_LV_university "NR" "NR" "NR" gamma_LV_age_50 lambda zeta_quality "NR" "NR" "NR" zeta_ingredient zeta_patent zeta_dominance "NR" "NR" "NR" tau_quality_1 tau_quality_2 tau_quality_3 "NR" "NR" "NR" tau_quality_4 tau_ingredients_1 tau_ingredients_2 "NR" "NR" "NR" tau_ingredients_3 tau_ingredients_4 tau_patent_1 "NR" "NR" "NR" tau_patent_2 tau_patent_3 tau_patent_4 "NR" "NR" "NR" tau_dominance_1 tau_dominance_2 tau_dominance_3 "NR" "NR" "NR" tau_dominance_4 eta "NR" "N" $gSeed [1] 13 $gNCREP [1] 50000 $gNEREP [1] 10000 $gINFOSKIP [1] 500 $fixedA [1] NA NA 0 $fixedD [1] NA NA 1 $gFULLCV [1] FALSE $nodiagnostics [1] TRUE $modelname [1] "Hybrid_with_OL_and_MMNL_bayesian" $gVarNamesFixed [1] "gamma_Artemis_reg_user" "gamma_Artemis_university" [3] "gamma_Artemis_age_50" "gamma_Novum_reg_user" [5] "gamma_Novum_university" "gamma_Novum_age_50" [7] "b_brand_BestValue" "b_brand_Supermarket" [9] "b_country_CH" "b_country_DK" [11] "b_country_IND" "b_country_RUS" [13] "b_country_BRA" "b_char_fast" [15] "b_char_double" "b_risk" [17] "b_price" "gamma_LV_reg_user" [19] "gamma_LV_university" "gamma_LV_age_50" [21] "lambda" "zeta_quality" [23] "zeta_ingredient" "zeta_patent" [25] "zeta_dominance" "tau_quality_1" [27] "tau_quality_2" "tau_quality_3" [29] "tau_quality_4" "tau_ingredients_1" [31] "tau_ingredients_2" "tau_ingredients_3" [33] "tau_ingredients_4" "tau_patent_1" [35] "tau_patent_2" "tau_patent_3" [37] "tau_patent_4" "tau_dominance_1" [39] "tau_dominance_2" "tau_dominance_3" [41] "tau_dominance_4" $gVarNamesNormal [1] "b_brand_Artemis_base" "b_brand_Novum_base" "eta" $gDIST b_brand_Artemis_base b_brand_Novum_base eta 1 1 1 $svN b_brand_Artemis_base b_brand_Novum_base eta 0 0 0 $FC gamma_Artemis_reg_user gamma_Artemis_university gamma_Artemis_age_50 0 0 0 gamma_Novum_reg_user gamma_Novum_university gamma_Novum_age_50 0 0 0 b_brand_BestValue b_brand_Supermarket b_country_CH 0 0 0 b_country_DK b_country_IND b_country_RUS 0 0 0 b_country_BRA b_char_fast b_char_double 0 0 0 b_risk b_price gamma_LV_reg_user 0 0 0 gamma_LV_university gamma_LV_age_50 lambda 0 0 1 zeta_quality zeta_ingredient zeta_patent 1 1 1 zeta_dominance tau_quality_1 tau_quality_2 1 -2 -1 tau_quality_3 tau_quality_4 tau_ingredients_1 1 2 -2 tau_ingredients_2 tau_ingredients_3 tau_ingredients_4 -1 1 2 tau_patent_1 tau_patent_2 tau_patent_3 -2 -1 1 tau_patent_4 tau_dominance_1 tau_dominance_2 2 -2 -1 tau_dominance_3 tau_dominance_4 1 2 Non-random parameters: ----------------------ngamma_Artemis_reg_user gamma_Artemis_university gamma_Artemis_age_50 gamma_Novum_reg_user gamma_Novum_university gamma_Novum_age_50 b_brand_BestValue b_brand_Supermarket b_country_CH b_country_DK b_country_IND b_country_RUS b_country_BRA b_char_fast b_char_double b_risk b_price gamma_LV_reg_user gamma_LV_university gamma_LV_age_50 lambda zeta_quality zeta_ingredient zeta_patent zeta_dominance tau_quality_1 tau_quality_2 tau_quality_3 tau_quality_4 tau_ingredients_1 tau_ingredients_2 tau_ingredients_3 tau_ingredients_4 tau_patent_1 tau_patent_2 tau_patent_3 tau_patent_4 tau_dominance_1 tau_dominance_2 tau_dominance_3 tau_dominance_4 Random parameters (Distribution): ---------------------------------nb_brand_Artemis_base ( ) b_brand_Novum_base ( ) eta ( ) Prior Variance-Covariance Matrix: --------------------------------- b_brand_Artemis_base b_brand_Novum_base eta b_brand_Artemis_base 2 0 0 b_brand_Novum_base 0 2 0 eta 0 0 2 apollo_probabilities ---------------------- function (apollo_beta, apollo_inputs, functionality = "estimate") { apollo_attach(apollo_beta, apollo_inputs) on.exit(apollo_detach(apollo_beta, apollo_inputs)) LV = gamma_LV_reg_user * regular_user + gamma_LV_university * university_educated + gamma_LV_age_50 * over_50 + eta b_brand_Artemis = b_brand_Artemis_base + gamma_Artemis_reg_user * regular_user + gamma_Artemis_university * university_educated + gamma_Artemis_age_50 * over_50 b_brand_Novum = b_brand_Novum_base + gamma_Novum_reg_user * regular_user + gamma_Novum_university * university_educated + gamma_Novum_age_50 * over_50 P = list() V = list() V[["alt1"]] = (b_brand_Artemis * (brand_1 == "Artemis") + b_brand_Novum * (brand_1 == "Novum") + b_country_CH * (country_1 == "Switzerland") + b_country_DK * (country_1 == "Denmark") + b_country_USA * (country_1 == "USA") + b_char_standard * (char_1 == "standard") + b_char_fast * (char_1 == "fast acting") + b_char_double * (char_1 == "double strength") + b_risk * side_effects_1 + b_price * price_1 + lambda * LV) V[["alt2"]] = (b_brand_Artemis * (brand_2 == "Artemis") + b_brand_Novum * (brand_2 == "Novum") + b_country_CH * (country_2 == "Switzerland") + b_country_DK * (country_2 == "Denmark") + b_country_USA * (country_2 == "USA") + b_char_standard * (char_2 == "standard") + b_char_fast * (char_2 == "fast acting") + b_char_double * (char_2 == "double strength") + b_risk * side_effects_2 + b_price * price_2 + lambda * LV) V[["alt3"]] = (b_brand_BestValue * (brand_3 == "BestValue") + b_brand_Supermarket * (brand_3 == "Supermarket") + b_brand_PainAway * (brand_3 == "PainAway") + b_country_USA * (country_3 == "USA") + b_country_IND * (country_3 == "India") + b_country_RUS * (country_3 == "Russia") + b_country_BRA * (country_3 == "Brazil") + b_char_standard * (char_3 == "standard") + b_char_fast * (char_3 == "fast acting") + b_risk * side_effects_3 + b_price * price_3) V[["alt4"]] = (b_brand_BestValue * (brand_4 == "BestValue") + b_brand_Supermarket * (brand_4 == "Supermarket") + b_brand_PainAway * (brand_4 == "PainAway") + b_country_USA * (country_4 == "USA") + b_country_IND * (country_4 == "India") + b_country_RUS * (country_4 == "Russia") + b_country_BRA * (country_4 == "Brazil") + b_char_standard * (char_4 == "standard") + b_char_fast * (char_4 == "fast acting") + b_risk * side_effects_4 + b_price * price_4) mnl_settings = list(alternatives = c(alt1 = 1, alt2 = 2, alt3 = 3, alt4 = 4), avail = list(alt1 = 1, alt2 = 1, alt3 = 1, alt4 = 1), choiceVar = best, utilities = V) P[["choice"]] = apollo_mnl(mnl_settings, functionality) ol_settings1 = list(outcomeOrdered = attitude_quality, utility = zeta_quality * LV, tau = list(tau_quality_1, tau_quality_2, tau_quality_3, tau_quality_4), rows = (task == 1)) ol_settings2 = list(outcomeOrdered = attitude_ingredients, utility = zeta_ingredient * LV, tau = list(tau_ingredients_1, tau_ingredients_2, tau_ingredients_3, tau_ingredients_4), rows = (task == 1)) ol_settings3 = list(outcomeOrdered = attitude_patent, utility = zeta_patent * LV, tau = list(tau_patent_1, tau_patent_2, tau_patent_3, tau_patent_4), rows = (task == 1)) ol_settings4 = list(outcomeOrdered = attitude_dominance, utility = zeta_dominance * LV, tau = list(tau_dominance_1, tau_dominance_2, tau_dominance_3, tau_dominance_4), rows = (task == 1)) P[["indic_quality"]] = apollo_ol(ol_settings1, functionality) P[["indic_ingredients"]] = apollo_ol(ol_settings2, functionality) P[["indic_patent"]] = apollo_ol(ol_settings3, functionality) P[["indic_dominance"]] = apollo_ol(ol_settings4, functionality) P = apollo_combineModels(P, apollo_inputs, functionality) P = apollo_prepareProb(P, apollo_inputs, functionality) return(P) }